package com.gxa.learning.core.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 等级管理表的映射实体
 *
 * @author lijianmin
 * @date 2021/12/02  14:06:09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_level_manager")
@ApiModel

public class LevelManager implements Serializable {

    /**
     * 等级管理编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "level_manager_id")
    @ApiModelProperty(name = "id", value = "id", dataType = "Long", example = "编号")
    @ExcelProperty(value = "编号", index = 0)
    private Long id;

    /**
     * 类别等级
     */
    @Column(name = "level_manager_level")
    @ApiModelProperty(name = "level", value = "level", dataType = "String", example = "类别等级")
    @ExcelProperty(value = "等级", index = 1)
    private String level;

    /**
     * 类别编号   类别id 连接查询
     */
    @Column(name = "type_id")
    @ApiModelProperty(name = "typeId", value = "typeId", dataType = "Long", example = "类别编号")
    @ExcelProperty(value = "类别编号", index = 2)
    private Long typeId;

    /**
     * 类别状态  0为无效,  1为有效
     */
    @Column(name = "level_manager_state")
    @ApiModelProperty(name = "state", value = "state", dataType = "Integer", example = "类别状态(0为无效,  1为有效)")
    @ExcelProperty(value = "状态", index = 3)
    private Integer state;

    /**
     * 上传人(用户编号) 连接查询用户表
     */
    @Column(name = "level_manager_upload_people")
    @ApiModelProperty(name = "uploadPeople", value = "uploadPeople", dataType = "Long", example = "上传人(用户编号)")
    @ExcelProperty(value = "上传人编号", index = 4)
    private Long uploadPeople;


}
